import { defineStore } from "pinia";
import { ref } from "vue";

//第一个参数是唯一storeId,setupStore风格
const useTabbarStore = defineStore("tabbar", () => {
  //ref包装定义的就是 state
  const isTabbarShow = ref(true);

  const changeTabbar = (value) => {
    isTabbarShow.value = value;
  };

  return {
    isTabbarShow,
    changeTabbar,
  };
});

export default useTabbarStore;
